

import React, { useId } from "react";

export default function Index() {

  const nanId = useId();
  const nvId = useId();

  return (
    <>
      <div>useId</div>
      <p>性别：</p>
      <input id={"sex_"+nanId} type="radio" name="sex" value="male" /> <label htmlFor={"sex_"+nanId}>男</label>
      <input id={"sex_"+nvId} type="radio" name="sex" value="male" /> <label htmlFor={"sex_"+nvId}>女</label>
    </>
  );
}

